<!DOCTYPE html>
<html>
<head lang="en">
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <link rel="stylesheet" type="text/css" href="./stylesheets/base.css">
    <link rel="stylesheet" type="text/css" href="./stylesheets/yuyue.css">
</head>

<body>
<div class="content">
    <input type="button" class="yuyue" value="立即预约"/>
</div>
<div class="dialog">
    <div class="dialog-inner">
        <table>
            <tr>
                <td>手机号码</td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
        </table>
    </div>
</div>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/common.js"></script>
<script>
    var $Ajax=function(ajaxOption){
        var defaultOption={
            url:ajaxOption.url,
            data:{},
            async:true,
            type:"GET"
        }
        if(ajaxOption.hasOwnProperty("async")){
            defaultOption.async=ajaxOption.async;
        }
        if(ajaxOption.data){

        }
    }
    var obj1 = {x: 1, y: 0, children: {x: 2}};
    var obj2 = obj1;

    obj2 = {x: 999};
    obj2.children = {x: 1024};

    console.log(obj1.children.x);


    var obj1 = {x: 1, y: 0, children: {x: 2}};
    var obj2 = obj1;

    obj2.children = {x: 111};

    console.log(obj1.children.x);
    !function(){
        var json={
            code:0,
            msg:"success"
        };
        var _axis=[],_up=[],_down=[],_cur=new Date();
        for(var _c=_cur.getTime(),j=0,_length=168,_hour=1000*60*60;j<_length;_c-=_hour,j++){

            _axis.push(DateFormat("yyyy-MM-dd hh:mm",new Date(_c)));
            _up.push(_random(0,3000));
            _down.push(_random(10000,500000));

        }
        var _series=[
            {
                name:"上行流量",
                data:_up
            },
            {
                name:"下行流量",
                data:_down
            }
        ];
        var _data={
            legend:["上行流量","下行流量"],
            axis:_axis,
            series:_series,
        };
        json.data=_data;
        console.log(JSON.stringify(json));
    }();
</script>
</body>

</html>
